<h1>Benutzer</h1>
<?PHP
  $userlist = new Template();
  $userlist->load("user_list");

  foreach(User::getAllUser() as $user){
    $index = $userlist->add_loop_item("USERLIST");
	$userlist->assign_loop_var("USERLIST", $index, "ID", $user->id);
	$userlist->assign_loop_var("USERLIST", $index, "NAME", $user->name);
	$userlist->assign_loop_var("USERLIST", $index, "ROLE", $user->role->name);
  }

  $userlist->output();
?>